package com.learn.retry.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description: java类作用描述
 * @author: MI
 * @email: 448341911@qq.com
 * @createDate: 2023/10/29 18:12
 * @updateUser: MI
 * @updateDate: 2023/10/29 18:12
 * @updateRemark: 修改内容
 * @version: v1.0
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 6670977155034754426L;

    private Integer id;
    /**
     * 姓名
     */
    private String name;

    /**
     * 性别  1:男,2:女
     */
    @NotNull(message = "不能为null")
    private Integer gender;

    /**
     * 年龄
     */
    private Integer age;

}
